import type { DataInterface, PageInterface, BooksListInterface } from '#/api'
import request from '@/utils/request'

/**
 * 请求所有书签
 * @param {BooksListInterface} params
 * @returns
 */
export const getBooksListApi = (params?: BooksListInterface): Promise<DataInterface> => {
  return request({
    url: '/books',
    params
  })
}
